Optimal. Leaf size=70 \[ \frac {(a+b)^3 \cosh (c+d x)}{d}+\frac {3 b (a+b)^2 \text {sech}(c+d x)}{d}-\frac {b^2 (a+b) \text {sech}^3(c+d x)}{d}+\frac {b^3 \text {sech}^5(c+d x)}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3745, 276}
\begin {gather*} -\frac {b^2 (a+b) \text {sech}^3(c+d x)}{d}+\frac {(a+b)^3 \cosh (c+d x)}{d}+\frac {3 b (a+b)^2 \text {sech}(c+d x)}{d}+\frac {b^3 \text {sech}^5(c+d x)}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 3745
Rubi steps
\begin {align*} \int \sinh (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx &=-\frac {\text {Subst}\left (\int \frac {\left (a+b-b x^2\right )^3}{x^2} \, dx,x,\text {sech}(c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (-3 b (a+b)^2+\frac {(a+b)^3}{x^2}+3 b^2 (a+b) x^2-b^3 x^4\right ) \, dx,x,\text {sech}(c+d x)\right )}{d}\\ &=\frac {(a+b)^3 \cosh (c+d x)}{d}+\frac {3 b (a+b)^2 \text {sech}(c+d x)}{d}-\frac {b^2 (a+b) \text {sech}^3(c+d x)}{d}+\frac {b^3 \text {sech}^5(c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.61, size = 63, normalized size = 0.90 \begin {gather*} \frac {5 (a+b)^3 \cosh (c+d x)+b \text {sech}(c+d x) \left (15 (a+b)^2-5 b (a+b) \text {sech}^2(c+d x)+b^2 \text {sech}^4(c+d x)\right )}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(169\) vs.
\(2(68)=136\).
time = 1.46, size = 170, normalized size = 2.43
method | result | size |
derivativedivides | \(\frac {a^{3} \cosh \left (d x +c \right )+3 a^{2} b \left (\frac {\sinh ^{2}\left (d x +c \right )}{\cosh \left (d x +c \right )}+\frac {2}{\cosh \left (d x +c \right )}\right )+3 a \,b^{2} \left (\frac {\sinh ^{4}\left (d x +c \right )}{\cosh \left (d x +c \right )^{3}}+\frac {4 \left (\sinh ^{2}\left (d x +c \right )\right )}{\cosh \left (d x +c \right )^{3}}+\frac {8}{3 \cosh \left (d x +c \right )^{3}}\right )+b^{3} \left (\frac {\sinh ^{6}\left (d x +c \right )}{\cosh \left (d x +c \right )^{5}}+\frac {6 \left (\sinh ^{4}\left (d x +c \right )\right )}{\cosh \left (d x +c \right )^{5}}+\frac {8 \left (\sinh ^{2}\left (d x +c \right )\right )}{\cosh \left (d x +c \right )^{5}}+\frac {16}{5 \cosh \left (d x +c \right )^{5}}\right )}{d}\) | \(170\) |
default | \(\frac {a^{3} \cosh \left (d x +c \right )+3 a^{2} b \left (\frac {\sinh ^{2}\left (d x +c \right )}{\cosh \left (d x +c \right )}+\frac {2}{\cosh \left (d x +c \right )}\right )+3 a \,b^{2} \left (\frac {\sinh ^{4}\left (d x +c \right )}{\cosh \left (d x +c \right )^{3}}+\frac {4 \left (\sinh ^{2}\left (d x +c \right )\right )}{\cosh \left (d x +c \right )^{3}}+\frac {8}{3 \cosh \left (d x +c \right )^{3}}\right )+b^{3} \left (\frac {\sinh ^{6}\left (d x +c \right )}{\cosh \left (d x +c \right )^{5}}+\frac {6 \left (\sinh ^{4}\left (d x +c \right )\right )}{\cosh \left (d x +c \right )^{5}}+\frac {8 \left (\sinh ^{2}\left (d x +c \right )\right )}{\cosh \left (d x +c \right )^{5}}+\frac {16}{5 \cosh \left (d x +c \right )^{5}}\right )}{d}\) | \(170\) |
risch | \(\frac {{\mathrm e}^{d x +c} a^{3}}{2 d}+\frac {3 \,{\mathrm e}^{d x +c} a^{2} b}{2 d}+\frac {3 a \,{\mathrm e}^{d x +c} b^{2}}{2 d}+\frac {b^{3} {\mathrm e}^{d x +c}}{2 d}+\frac {{\mathrm e}^{-d x -c} a^{3}}{2 d}+\frac {3 \,{\mathrm e}^{-d x -c} a^{2} b}{2 d}+\frac {3 a \,{\mathrm e}^{-d x -c} b^{2}}{2 d}+\frac {{\mathrm e}^{-d x -c} b^{3}}{2 d}+\frac {2 b \,{\mathrm e}^{d x +c} \left (15 a^{2} {\mathrm e}^{8 d x +8 c}+30 a b \,{\mathrm e}^{8 d x +8 c}+15 b^{2} {\mathrm e}^{8 d x +8 c}+60 a^{2} {\mathrm e}^{6 d x +6 c}+100 a b \,{\mathrm e}^{6 d x +6 c}+40 b^{2} {\mathrm e}^{6 d x +6 c}+90 a^{2} {\mathrm e}^{4 d x +4 c}+140 a b \,{\mathrm e}^{4 d x +4 c}+66 b^{2} {\mathrm e}^{4 d x +4 c}+60 a^{2} {\mathrm e}^{2 d x +2 c}+100 a b \,{\mathrm e}^{2 d x +2 c}+40 b^{2} {\mathrm e}^{2 d x +2 c}+15 a^{2}+30 a b +15 b^{2}\right )}{5 d \left (1+{\mathrm e}^{2 d x +2 c}\right )^{5}}\) | \(334\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 321 vs.
\(2 (68) = 136\).
time = 0.28, size = 321, normalized size = 4.59 \begin {gather*} \frac {1}{10} \, b^{3} {\left (\frac {5 \, e^{\left (-d x - c\right )}}{d} + \frac {85 \, e^{\left (-2 \, d x - 2 \, c\right )} + 210 \, e^{\left (-4 \, d x - 4 \, c\right )} + 314 \, e^{\left (-6 \, d x - 6 \, c\right )} + 185 \, e^{\left (-8 \, d x - 8 \, c\right )} + 65 \, e^{\left (-10 \, d x - 10 \, c\right )} + 5}{d {\left (e^{\left (-d x - c\right )} + 5 \, e^{\left (-3 \, d x - 3 \, c\right )} + 10 \, e^{\left (-5 \, d x - 5 \, c\right )} + 10 \, e^{\left (-7 \, d x - 7 \, c\right )} + 5 \, e^{\left (-9 \, d x - 9 \, c\right )} + e^{\left (-11 \, d x - 11 \, c\right )}\right )}}\right )} + \frac {1}{2} \, a b^{2} {\left (\frac {3 \, e^{\left (-d x - c\right )}}{d} + \frac {33 \, e^{\left (-2 \, d x - 2 \, c\right )} + 41 \, e^{\left (-4 \, d x - 4 \, c\right )} + 27 \, e^{\left (-6 \, d x - 6 \, c\right )} + 3}{d {\left (e^{\left (-d x - c\right )} + 3 \, e^{\left (-3 \, d x - 3 \, c\right )} + 3 \, e^{\left (-5 \, d x - 5 \, c\right )} + e^{\left (-7 \, d x - 7 \, c\right )}\right )}}\right )} + \frac {3}{2} \, a^{2} b {\left (\frac {e^{\left (-d x - c\right )}}{d} + \frac {5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 1}{d {\left (e^{\left (-d x - c\right )} + e^{\left (-3 \, d x - 3 \, c\right )}\right )}}\right )} + \frac {a^{3} \cosh \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 383 vs.
\(2 (68) = 136\).
time = 0.34, size = 383, normalized size = 5.47 \begin {gather*} \frac {5 \, {\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \cosh \left (d x + c\right )^{6} + 5 \, {\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \sinh \left (d x + c\right )^{6} + 30 \, {\left (a^{3} + 5 \, a^{2} b + 7 \, a b^{2} + 3 \, b^{3}\right )} \cosh \left (d x + c\right )^{4} + 15 \, {\left (2 \, a^{3} + 10 \, a^{2} b + 14 \, a b^{2} + 6 \, b^{3} + 5 \, {\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{4} + 50 \, a^{3} + 330 \, a^{2} b + 430 \, a b^{2} + 182 \, b^{3} + 5 \, {\left (15 \, a^{3} + 93 \, a^{2} b + 125 \, a b^{2} + 47 \, b^{3}\right )} \cosh \left (d x + c\right )^{2} + 5 \, {\left (15 \, {\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \cosh \left (d x + c\right )^{4} + 15 \, a^{3} + 93 \, a^{2} b + 125 \, a b^{2} + 47 \, b^{3} + 36 \, {\left (a^{3} + 5 \, a^{2} b + 7 \, a b^{2} + 3 \, b^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{2}}{10 \, {\left (d \cosh \left (d x + c\right )^{5} + 5 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + 5 \, d \cosh \left (d x + c\right )^{3} + 5 \, {\left (2 \, d \cosh \left (d x + c\right )^{3} + 3 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + 10 \, d \cosh \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tanh ^{2}{\left (c + d x \right )}\right )^{3} \sinh {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 236 vs.
\(2 (68) = 136\).
time = 0.52, size = 236, normalized size = 3.37 \begin {gather*} \frac {5 \, a^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + 15 \, a^{2} b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + 15 \, a b^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + 5 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + \frac {4 \, {\left (15 \, a^{2} b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{4} + 30 \, a b^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{4} + 15 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{4} - 20 \, a b^{2} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} - 20 \, b^{3} {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} + 16 \, b^{3}\right )}}{{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{5}}}{10 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.25, size = 308, normalized size = 4.40 \begin {gather*} \frac {{\mathrm {e}}^{c+d\,x}\,{\left (a+b\right )}^3}{2\,d}+\frac {{\mathrm {e}}^{-c-d\,x}\,{\left (a+b\right )}^3}{2\,d}+\frac {6\,{\mathrm {e}}^{c+d\,x}\,\left (a^2\,b+2\,a\,b^2+b^3\right )}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}-\frac {64\,b^3\,{\mathrm {e}}^{c+d\,x}}{5\,d\,\left (4\,{\mathrm {e}}^{2\,c+2\,d\,x}+6\,{\mathrm {e}}^{4\,c+4\,d\,x}+4\,{\mathrm {e}}^{6\,c+6\,d\,x}+{\mathrm {e}}^{8\,c+8\,d\,x}+1\right )}+\frac {8\,{\mathrm {e}}^{c+d\,x}\,\left (9\,b^3+5\,a\,b^2\right )}{5\,d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}+3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}+1\right )}+\frac {32\,b^3\,{\mathrm {e}}^{c+d\,x}}{5\,d\,\left (5\,{\mathrm {e}}^{2\,c+2\,d\,x}+10\,{\mathrm {e}}^{4\,c+4\,d\,x}+10\,{\mathrm {e}}^{6\,c+6\,d\,x}+5\,{\mathrm {e}}^{8\,c+8\,d\,x}+{\mathrm {e}}^{10\,c+10\,d\,x}+1\right )}-\frac {8\,{\mathrm {e}}^{c+d\,x}\,\left (b^3+a\,b^2\right )}{d\,\left (2\,{\mathrm {e}}^{2\,c+2\,d\,x}+{\mathrm {e}}^{4\,c+4\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________